$blueColor:#0092dc;
$textColor:#212121;
$hintColor:#c7c7c7;
$iconColor:#b8b8b8;

// 基本样式
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;
}

a {
    color: #000000;
}

a:hover,
a:active,
a:link {
    text-decoration: none;
}

// 公共class
.bg000 {
    background: #f8fafc;
    box-shadow: 0 2px 4px 0 rgba(7, 17, 27, .06);
}

.bgfff {
    background: #ffffff;
    box-shadow: 0 2px 8px 0 rgba(7, 17, 27, .06);
}

.nobor {
    border: none !important;
}

.text-black {
    color: #000000;
}

.sec-mrb {
    margin-bottom: 30px;
}

.color-hint {
    color: $hintColor;
}

.in {
    display: block !important;
}

// 组件css
.layout {
    background: rgba($color: #000000, $alpha: .5);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1000;

    .layout-content {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 50%;
        height: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        border-radius: 10px;
        padding: 30px;
    }
}

.carousel img {
    width: 100%;
}

.section {
    padding: 15px 0px;

    .section-header {
        line-height: 50px;

        h2,
        h3 {
            margin: 0;
            line-height: 50px;
            margin-bottom: 40px;
        }

        h3,h4 {
            margin-bottom: 20px;
        }
    }

    .icon-header {
        width: 90%;
        text-align: center;
        margin: 60px auto 0px;

        .icon-box {
            img {
                height: 25px;
            }
        }

        .icon-line {
            position: relative;
            height: 1px;
            width: 100%;
            background: $textColor;
            margin: 20px auto 30px;

            .icon-text {
                padding: 0px 20px;
                background: #fff;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);

                &.xs-title {
                    width: 90%;
                    font-size: 20px;
                    line-height: 1.4;
                }
            }
        }

        p {
            font-size: 16px;
            color: $hintColor;
        }
    }

    .load-more {
        margin-top: 20px;
    }

    .section-ad {
        background: url('../images/ad-bg.jpg') no-repeat center;
        background-size: cover;
        color: #FFFFFF;

        .col-sm-3 {
            padding-left: 30px;
            padding-right: 30px;
        }

        .item .caption {
            margin-top: 40px;
        }

        .btn {
            color: #fff;
            background-color: #005bac;
            border-color: #005bac;
            margin: 20px auto;
        }
    }
}

.btn-blue {
    display: inline-block;
    background: $blueColor;
    padding: 6px 20px;
    border-radius: 36px;
    color: #fff;
    border: 1px solid $blueColor;

    &:hover {
        color: #fff;
        box-shadow: 0 4px 8px 0 rgba(7, 17, 27, 0.1);
    }
}

.btn-ghost {
    display: inline-block;
    padding: 6px 20px;
    color: $blueColor;
    border: 1px solid $blueColor;
    border-radius: 4px;
    background-color: transparent;

    &:hover {
        background: $blueColor;
        color: #fff;
    }
}

.search-box {
    // 搜索
    width: 100%;
    text-align: right;

    .search-form {
        width: 100%;
        height: 36px;
        border-radius: 36px;
        border: 1px solid #eee;
        position: relative;

        .search-icon {
            width: 36px;
            height: 36px;
            margin-left: 15px;
            line-height: 36px;
            color: $iconColor;
            position: absolute;
            z-index: 9;
            top: -1px;
            left: -22px;
        }

        .search-input {
            height: 34px;
            position: absolute;
            top: 0;
            left: 40px;
            right: 60px;

            input {
                border: none;
                outline: none;
                width: 100%;
                height: 100%;
            }
        }

        .search-btn {
            width: 36px;
            height: 36px;
            line-height: 36px;
            color: $iconColor;
            border: none;
            background: none;
            position: absolute;
            top: 0px;
            right: 15px;

            &:hover {
                color: $blueColor;
            }
        }
    }
}

.qrcode {
    width: 300px !important;
    height: auto !important;
    text-align: center;
    overflow: hidden;

    p {
        margin-top: 10px;
    }

    #canvas {
        width: 200px !important;
        height: 200px !important;
    }
}

.up-box {
    // 下载
    position: relative;
    display: block;

    .up-input {
        position: absolute;
        left: 0;
        width: 100%;
        height: 100%;
        top: 0;
        opacity: 0;
        cursor: pointer;
    }
}

.info-card {
    overflow: hidden;
    background: #f7f5f5;
    border-radius: 10px;

    .card-left {
        height: 440px;
        text-align: center;
        background: #eee;
        border-radius: 10px 0 0 10px;
        margin-left: -15px;
        margin-right: -15px;
        overflow: hidden;
    }

    .card-right {
        overflow: hidden;
        padding: 40px 0px;
    }
}

.common-form {
    .form-group {

        // margin-top: 30px;
        &>div {
            margin-top: 30px;
        }

        label {
            font-weight: 500;
            color: $iconColor;
            margin-bottom: 10px;
            padding-left: 10px;

            &.no-label {
                height: 15px;
            }
        }

        &.btn-box {
            margin-top: 50px;
        }
    }
}

.table-responsive {
    border: none;
}

.file-table {
    min-width: 600px;

    tr {
        border-bottom: 1px solid #d8d8d8;

        th {
            text-align: center;
        }

        th:first-child,
        td:first-child {
            text-align: left;
        }

        th:last-child,
        td:last-child {
            text-align: right;
        }

        td {
            text-align: center;
            padding: 20px 0px;
        }
    }
}

// 主体css
.kgh-container {
    padding: 0px 0px 40px;
    min-height: 700px;
    width: 100%;
    overflow-x: hidden;

    .search-section {
        margin-bottom: 10px;
    }
}

// 视频
.video-js .vjs-big-play-button {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

//自定义bootstrap样式
/* 三级菜单 */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    -webkit-border-radius: 0 6px 6px 6px;
    -moz-border-radius: 0 6px 6px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.dropdown-submenu>a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover>a:after {
    border-left-color: #fff;
}

.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu.pull-left>.dropdown-menu {
    left: -100%;
    margin-left: 10px;
    -webkit-border-radius: 6px 0 6px 6px;
    -moz-border-radius: 6px 0 6px 6px;
    border-radius: 6px 0 6px 6px;
}

button:focus,
button:active:focus,
button.active:focus,
button.focus,
button:active.focus,
button.active.focus {
    outline: none;
}

input.form-control,
select.form-control {
    background: transparent;
    box-shadow: none;
    color: $textColor;
}

.btn-success {
    background-color: #91ff38;
    border-color: #91ff38;
}

.btn-danger {
    background-color: #ff3838;
    border-color: #ff3838;
}

.text-primary {
    color: $blueColor;
}

.text-success {
    color: #91ff38;
}

.text-danger {
    color: #ff3838;
}